Welcome![Sign In][Sign Up]
Location:
Search - bmp 256

Search list

[Graph Recognize车牌识别

Description:


需要注意的地方:

使用VC++6.0做开发工具, 采用简单的SDI框架结构 ,一次处理一幅位图(有兴趣的可以作成MDI)

1)位图信息的数据是从左下往右下为一行,一行一行往上排的。

2)每行像素应该是4的倍数,不足的地方用空点补齐,读的时候注意跳过冗余点。

3)主要数据都存在Doc里面,BMP的主要数据存在一个由ImgData指向的BYTE型的内存空间(根据位图的大小,动态分配的)。

4)数据读进来以后,注意向内存中贴图,以保证刷新的效率。

5)程序执行流程

应用程序生成--》打开--》CDipView的OnFileOpen 函数--》

调用CDipDoc的FileOpen 函数--》并使用myDoc->UpdateAllViews(NULL); 刷新

自动调用CDipView的OnPaint函数--》调用CDipView的OnDraw函数----一个像素点一个像素点的画

//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

比较重要的地方

读BMP文件,只能打开256色   (可以是灰度)

显示和内存贴图技术

关于调色板: 调色板实际上是一个数组,4个BYTE 分别是 B,G,R,和 Reserved
每一个像素点都有一个相应的数组。


关于VC和windows 的绘图机制:
使用GDI(图形设备接口)对象,通常使用CDC 类,CPaintDC也一样(device-context)设备上下文

windows下的MFC编程机制,消息驱动,事件等待!

全局的app(应用程序对象)

注意 手工分配内存的清除 和CDC对象的删除 以释放系统的GDI资源
每一个new操作符都要对应一个delete

虽然已经弄出来了,还是希望大家好好读读源程序。

你们以后的工作:

在菜单中添加菜单项,通过ClassWizzard 生成消息响应函数(当然也可手动添加),
所有的操作应当是对 BYTE* ImgData;进行的。
在完成相应的功能后 将 isnewfile 和 isnewiamge 置为真 ,并使用myDoc->UpdateAllViews(NULL); 刷新

当然,可以更加有个性化一点,有能力的同学可以自己完成。
随着课程的进行,菜单功能逐渐丰富,最后完成基本的数字图像处理的功能,而不必最后一下完成一个大的作业。

 

 


Platform: | Size: 295054 | Author: tata80808 | Hits:

[Compress-Decompress algrithmsSPIHT(Matlab).zip

Description:

% Matlab implementation of SPIHT (without Arithmatic coding stage)
%
% By Jing Tian, scuteejtian@hotmail.com

fprintf('-----------   Welcome to SPIHT Matlab Demo!   ----------------\n');

fprintf('-----------   Load Image   ----------------\n');
infilename = 'lena512.bmp';
outfilename = 'lena512_reconstruct.bmp';

Orig_I = double(imread(infilename));

rate = 1;

OrigSize = size(Orig_I, 1);
max_bits = floor(rate * OrigSize^2);
OutSize = OrigSize;
image_spiht = zeros(size(Orig_I));
[nRow, nColumn] = size(Orig_I);

fprintf('done!\n');
fprintf('-----------   Wavelet Decomposition   ----------------\n');
n = size(Orig_I,1);
n_log = log2(n);
level = n_log;
% wavelet decomposition level can be defined by users manually.
type = 'bior4.4';
[Lo_D,Hi_D,Lo_R,Hi_R] = wfilters(type);

[I_W, S] = func_DWT(Orig_I, level, Lo_D, Hi_D);

fprintf('done!\n');

fprintf('-----------   Encoding   ----------------\n');
img_enc = func_SPIHT_Enc(I_W, max_bits, nRow*nColumn, level);  

fprintf('done!\n');
fprintf('-----------   Decoding   ----------------\n');
img_dec = func_SPIHT_Dec(img_enc);

fprintf('done!\n');
fprintf('-----------   Wavelet Reconstruction   ----------------\n');
img_spiht = func_InvDWT(img_dec, S, Lo_R, Hi_R, level);

fprintf('done!\n');
fprintf('-----------   PSNR analysis   ----------------\n');

imwrite(img_spiht, gray(256), outfilename, 'bmp');

Q = 255;
MSE = sum(sum((img_spiht-Orig_I).^2))/nRow / nColumn;
fprintf('The psnr performance is %.2f dB\n', 10*log10(Q*Q/MSE));


Platform: | Size: 232873 | Author: jasonchang | Hits:

[Other resourcebmp2htm

Description: 作者:RockCarry工作室 陈凯 用TC2.0做的一个将BMP文件转换为HTML文件的小程序。 自己认为效果还不错,目前只能转换256色的BMP文件。 程序代码其实很简单,有兴趣的朋友,可以看看。 使用方法: 运行BMP2HTM文件即可,提示输入BMP文件名,记住目前只能转换256色的BMP图片。 然后会提示是否采用屏蔽色。 最后转换成功,在当前目录下面会生成一个名为A.htm的文件。这个就是转换后的文件了。 如果使用命令行方式,可如下: bmp2htm bmpfile.bmp -m 表示将bmpfile.bmp转换为A.htm,如果加上参数-m则使用屏蔽色,否则不使用。 目前只能支持256色的,并且小于64K的bmp位图。 RockCarry工作室 陈凯 2005.3.26-Author : RockCarry studio with Chen Kai WITH TC 2.0 will do a BMP file converted to HTML documents small programs. They think the results were pretty good, currently only 256-color conversion of BMP file. The code is very simple, interested friends can see. Use : Operation BMP2HTM documents can be, suggesting that BMP file name, remember currently only 256 color conversion of BMP images. Then suggest whether shielding color. The last successful conversion, in the current directory will generate a document entitled A.htm. This is the conversion of documents. If the use of the command line, as follows : bmp2htm bmpfile.bmp-m said bmpfile.bmp converted to A.htm, if the parameters - m using shielding color, or non-use. Currently only support 256-color, and less than 64K of bmp bitmap. RockCa
Platform: | Size: 113402 | Author: 陈凯 | Hits:

[ToolBaruo_toolbarrutil

Description: PB下的大图标工具栏,图标支持256色bmp文件。也可在图标旁显示文本。 〔安羽上传〕-PB under the icon toolbar, support 256-color icons bmp file. Also available on the icon next to display text. [Upload] Anhu
Platform: | Size: 8254 | Author: 安羽 | Hits:

[GDI-Bitmap图象合并程序

Description: 256色BMP图象的合并程序,希望对大家有用,-256 color BMP image merging process, we hope to useful, huh
Platform: | Size: 28344 | Author: | Hits:

[ComboBox图象处理及分形图象压缩

Description: 图象处理及分形图象压缩是针对真彩(24位色)BMP图象进行简单处理和能够进行分形图象压缩的程序.分形图象压缩采用了固定分块和四叉树的方法,小波零树编码的方法还有问题. 图象处理部分对图片大小没有要求,分形图象压缩部分对图片大小有要求,大小应是2的次方幂(例如大小应是128*128,256*256,512*512等等),否则在菜单上看到的图象压缩里子菜单是灰的,不起作用. -image processing and fractal image compression is against True Color (24-bit color) BMP images and can handle simple fractal image compression process. Fractal Image Compression with a fixed block and quadtree method EZW coding method is problematic. Image processing part of the picture size no, fractal image compression part of the picture size requirements, should be the size of the two-power (such as size should be 128 * 128 * 256 * 512, etc.), or else on the menu to see the image compression Lane submenu is the gray, ineffective.
Platform: | Size: 211488 | Author: 王晶 | Hits:

[Windows Develop图片转换

Description: 使用工具:VC++6.0(MFC) 程序名:ChangeImg.exe 功能:完成256色的pcx的图片转成bmp格式文件-use of tools : VC 6.0 (MFC) procedures Name : ChangeImg.exe functions : to complete the 256 color pictures nil conversion bmp format
Platform: | Size: 1136314 | Author: dai | Hits:

[Other resourceImageFFT2

Description: VC编写的高效的图象2D快速傅立叶正变换程序,编译通过.适合256色bmp图象变换.效果和matlab的fft2()没法比,但是程序值得借鉴.适合图象处理初学者,有助于理解傅立叶变换在图象处理中的重要作用.-VC efficient preparation of the image is 2D fast Fourier transform procedures compile. Bmp for 256-color image transformation. Results and Matlab fft2 () no match for, but the procedure is worth learning from. Image processing for beginners, helps to understand Fourier transform in the image processing an important role.
Platform: | Size: 84787 | Author: 李安定 | Hits:

[Graph program图像处理课程设计

Description: 用MFC编写,实现的功能有: i. 打开256色的BMP格式的图像文件: ii. 图像的傅立叶变换: iii. 直方图均衡化: iv. 图像的中值滤波 v. 图像的边缘检测 vi. 几何变换 vii. 哈夫 曼编码查看: viii. 直方图查看 ix. 用哈夫曼压缩方法对图像进行压缩并生成压缩文件 另外还有课设论文及重要模块流程图。有一定 的参考价值 -prepared using MFC, the functions are : i. Open 256-color BMP image file formats : ii. the Fourier Transform Image : iii. histogram equalization : iv. Image median filtering v. Image Edge Detection vi. Geometric Transforms vii. Huffman coding View : viii. histogram View ix. Huffman compression method used to compress images and generate compressed files another lesson based papers and important module flowchart. There will be some reference value
Platform: | Size: 848700 | Author: 斯蒂芬 | Hits:

[GDI-BitmapStatus

Description: 实习时编写的程序,可以读取256色的BMP图像,并进行高通低通滤波,以及灰度直方图的统计-attachments prepared by the procedures, can read 256-color BMP images, and high-low pass filtering, and the histogram statistics
Platform: | Size: 43311 | Author: atubar | Hits:

[GDI-Bitmap256-hui

Description: 将256色bmp图像文件转换为raw图像文件的C语言代码。-Bmp to 256 colors image file is converted to raw image files of C language code.
Platform: | Size: 177152 | Author: 杨帅 | Hits:

[2D GraphicPaletteGenerator

Description: This program lets you load a JPEG or BMP image and then generate a 256 color palette from sampling 256 evenly spaced spots on the image. It scans the image evenly in a 16 x 16 grid to generate this palette. It can save the palette file in either the Photoshop standard or the format used by Image Analyzer (a free graphics program which can be found here: http://meesoft.logicnet.dk/Analyzer/ )
Platform: | Size: 2048 | Author: Ben321 | Hits:

[Graph programconstruct_bmp

Description: 运用MATLAB语言,构造了.bmp文件,其中包含了黑白,256色以及真彩图片,加强了对于 .bmp文件的理解,及MATLAB语言对于文件的读写-The use of MATLAB language, is constructed. Bmp file, which contains black and white, 256-color and true color images, enhanced for. Bmp files to understand, and the MATLAB language for the document to read and write
Platform: | Size: 3072 | Author: 陈濛 | Hits:

[GDI-BitmapBMP

Description: BMP格式图片内嵌入隐藏信息,只支持BMP24位真彩,256色的不支持-BMP format pictures embedded hidden information, which only supports BMP24-bit true color, 256 colors does not support the
Platform: | Size: 2067456 | Author: 孤浪 | Hits:

[Special EffectsBmpTest

Description: 运用MFC多文档,可以打开256位真彩图片并能显示出来。-Using MFC multi-document, you can open a 256-bit true color image and can be displayed.
Platform: | Size: 40960 | Author: yue | Hits:

[Special EffectsBmp24To8_256

Description: 直接将24位位图方便转为8位位图,可以直接使用-transfer a bitmap with 24 bit depth to 8 bit
Platform: | Size: 201728 | Author: deng xiaohong | Hits:

[Picture Viewerimages

Description: 国际标准测试图片,大小512*512和256*256,有灰度图和彩色图,可做算法性能测试-the criterion images
Platform: | Size: 8284160 | Author: yanglei | Hits:

[Special Effectsbmp

Description: vc程序实现BMP图像解析,对256色bmp图像进行处理的程序-vc procedures to achieve BMP image resolution, 256 color bmp image on the procedures for handling
Platform: | Size: 4629504 | Author: 官龙龙 | Hits:

[Picture ViewerBMP

Description: 在BC上显示256色BMP图片,运行后按任意键退出-Of displaying 256 colors BMP image on the BC, press any key to exit after running
Platform: | Size: 4096 | Author: 刘小辉 | Hits:

[Windows DevelopbmpTools

Description: 将256色bmp彩色图片转化为8位bmp灰度图。(The 256 color bmp color images are converted to 8 bit BMP grayscale.)
Platform: | Size: 2237440 | Author: tylerzhangdi | Hits:
« 1 2 3 4 5 67 8 9 10 11 ... 17 »

CodeBus www.codebus.net